import java.util.Iterator;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

/*
public class Test {
    public static void main(String[] args) {
        Father a = new Child();
        a.f();
        System.out.println(a.i);
    }
}
 class Father {
    int i = 55;
    public void f(){
        System.out.println("father!");
    }
}
 class Child extends Father{
    int i = 5;
    public void f(){
        System.out.println("child!");
    }
}*/
/*public class Test {
    int x= 12;
    public void method(int x) {
        x+=x;
        System.out.println(x);
    }
    public static void main(String[] args){
        Test t = new Test();
        t.method(5);
    }
}*/
/*public class Test {
    public static void main(String[] args) {
        Set set = new TreeSet();
        set.add(new Integer(10));
        set.add(new Integer(5));
        set.add(new Integer(15));
        set.add(new Integer(5));
        set.add(new Integer(10));
        System.out.println("size = " + set.size());
        Iterator it = set.iterator();
        while (it.hasNext()) {
            System.out.print(it.next() + "   ");
        }
    }
}*/
/*class One{
    synchronized void display(int num) {
        System.out.println("two " + num);
        try {
            Thread.sleep(1000);
        }
        catch (InterruptedException e) {
            System.out.println("中断");
        }
        System.out.println("完成");
    }
}

class Two implements Runnable {
    int number;
    One one;
    Thread t;

    public Two(One one_num, int n) throws InterruptedException {
        {
            One one = new One();
            int digit = 100;
            Two s1 = new Two(one, digit);
            Two s2 = new Two(one, digit);
            Two s3 = new Two(one, digit);
            Two s4 = new Two(one, digit);
            s1.t.join();
            s2.t.join();
            s3.t.join();
            s4.t.join();
            System.out.println("Synch结束!");
        }
    }
    @Override
    public void run() {
    }
}*/
/*

public Class Test{
public static void main(String argv[]){
        Test t=new Test();
        t.first();
        }



public void first(){
        int i=5;
        Value v=new Value();
        v.i=25;
        second(v,i);
        System.out.println(v.i);
        }

public void second(Value v,int i){
        i=0;v.i=20;
        Value val=new Value();
        v=val;
        System.out.println(v.i+"  "+i);
        }

        }

class Value {
    public int i = 15;
}
*/
public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());
        String [] result = new String[n];
        for(int i=0;i<n;i++){
            if(i%2==0){
                scanner.nextLine();
            }
            String english = scanner.nextLine();
            result[i] = englishToCh(english);
        }
        for(int i=0;i<n;i++){
            System.out.println(result[i]);
        }
    }
    public static String englishToCh(String english){
        String chinese = null;
        switch (english){
            case "zero":chinese="ling";break;
            case "one" :chinese="yi";break;
            case "two" :chinese="er";break;
            case "three" :chinese="san";break;
            case "four" :chinese="si";break;
            case "five" :chinese="wu";break;
            case "six" :chinese="liu";break;
            case "seven" :chinese="qi";break;
            case "eight" :chinese="ba";break;
            case "nine" :chinese="jiu";break;
            case "ten" :chinese="shi";break;
        }
        return chinese;
    }
}

